#ifndef __SCNS_TM1638_H__
#define __SCNS_TM1638_H__

#include "ScnsConfig.h"

#if defined(SCNS_TM1638_ENABLE)&&SCNS_TM1638_ENABLE==1

#include "ScnsBspTm1638.h"

#include "ScnsYing.h"

typedef enum
{
    SCNS_TM1638_STATUS_OK=SCNS_YING_STATUS_OK,
    SCNS_TM1638_STATUS_BSP_FAILED=SCNS_YING_STATUS_BSP_FAILED,
    SCNS_TM1638_STATUS_FAILED=SCNS_YING_STATUS_FAILED,
    SCNS_TM1638_STATUS_TIME_OUT=SCNS_YING_STATUS_TIME_OUT,
}ScnsTm1638Status;

extern ScnsTm1638Status scnsTm1638Init(ScnsTm1638Enum tm1N);
extern void scnsTm1638Sync(ScnsTm1638Enum tm1N);
extern void scnsTm1638Display(ScnsTm1638Enum tm1N,const uint8 data[8]);
extern void scnsTm1638DisplayPartial(ScnsTm1638Enum tm1N,const uint8 data[],uint8 start,uint8 len);
extern void scnsTm1638SetBright(ScnsTm1638Enum tm1N,uint8 bright);
#endif
#endif
